DateTimeEditors for WinRT
Removing the Spin Buttons

You can remove the C1TimeEditor control's spin buttons by setting the C1TimeEditor.ShowButtons property to False. In this topic, you will learn how to set the C1TimeEditor.ShowButtons property to False in the designer, in XAML, and in code.

In the Designer

Complete the following steps:

  1. Click the C1TimeEditor control once to select it.
  2. In the Properties window, clear the C1TimeEditor.ShowButtons check box.

In XAML

To remove the spin buttons, place ShowButtons="False" to the <DateTimeEditors:C1TimeEditor>tag so that the markup resembles the following:

Markup
Copy Code
<DateTimeEditors:C1TimeEditor ShowButtons="False"/>

In Code

Complete the following steps:

  1. Open the MainPage.xaml.cs page.
  1. Place the following code beneath the C1TimeEditor_Loaded event:
Visual Basic
Copy Code
C1TimeEditor1.ShowButtons = False

 

C#
Copy Code
c1TimeEditor1.ShowButtons = false;
  1. Run the project.

This Topic Illustrates the Following:

The following image depicts a C1TimeEditor control with its spin buttons removed.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback